const gulp = require('gulp');
const scss = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');

gulp.task('scss',done =>{

  gulp.src('./src/scss/main/*.scss')
    .pipe(scss())
    .pipe(autoprefixer({
      browsers: ['last 13 versions', 'ie 6-8'],
      flexbox: true
    }))
    .pipe(gulp.dest('./src/css'));
  done();
});

gulp.task('default',gulp.series(gulp.parallel('scss')),done =>{
  console.log('default');
  done();
});
